home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-09-17 | 2.0 KB | 76 lines | [TEXT/MPS ] |
- {
- File: Disks.p
-
- Copyright: © 1983-1993 by Apple Computer, Inc.
- All rights reserved.
-
- Version: System 7.1 for ETO #11
- Created: Tuesday, March 30, 1993 18:00
-
- }
-
- {$IFC UNDEFINED UsingIncludes}
- {$SETC UsingIncludes := 0}
- {$ENDC}
-
- {$IFC NOT UsingIncludes}
- UNIT Disks;
- INTERFACE
- {$ENDC}
-
- {$IFC UNDEFINED UsingDisks}
- {$SETC UsingDisks := 1}
-
- {$I+}
- {$SETC DisksIncludes := UsingIncludes}
- {$SETC UsingIncludes := 1}
- {$IFC UNDEFINED UsingTypes}
- {$I $$Shell(PInterfaces)Types.p}
- {$ENDC}
- {$IFC UNDEFINED UsingOSUtils}
- {$I $$Shell(PInterfaces)OSUtils.p}
- {$ENDC}
- {$SETC UsingIncludes := DisksIncludes}
-
- TYPE
- DriveKind = (sony,hard20);
-
-
- DrvSts = RECORD
- track: INTEGER; {current track}
- writeProt: SignedByte; {bit 7 = 1 if volume is locked}
- diskInPlace: SignedByte; {disk in drive}
- installed: SignedByte; {drive installed}
- sides: SignedByte; {-1 for 2-sided, 0 for 1-sided}
- driveQLink: QElemPtr; {next queue entry}
- driveQVers: INTEGER; {1 for HD20}
- dQDrive: INTEGER; {drive number}
- dQRefNum: INTEGER; {driver reference number}
- dQFSID: INTEGER; {file system ID}
- CASE DriveKind OF
- sony:
- (twoSideFmt: SignedByte; {after 1st rd/wrt: 0=1 side, -1=2 side}
- needsFlush: SignedByte; {-1 for MacPlus drive}
- diskErrs: INTEGER); {soft error count}
- hard20:
- (driveSize: INTEGER; {drive block size low word}
- driveS1: INTEGER; {drive block size high word}
- driveType: INTEGER; {1 for HD20}
- driveManf: INTEGER; {1 for Apple Computer, Inc.}
- driveChar: SignedByte; {230 ($E6) for HD20}
- driveMisc: SignedByte); {0 -- reserved}
- END;
-
-
- FUNCTION DiskEject(drvNum: INTEGER): OSErr;
- FUNCTION SetTagBuffer(buffPtr: Ptr): OSErr;
- FUNCTION DriveStatus(drvNum: INTEGER;VAR status: DrvSts): OSErr;
-
-
- {$ENDC} { UsingDisks }
-
- {$IFC NOT UsingIncludes}
- END.
- {$ENDC}
-
-